package com.hfmall.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author liclo
 * @since 2021-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(value = {"handler"})
public class HfOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(updateStrategy= FieldStrategy.NOT_EMPTY)
    private String orderNo;

    @TableField(updateStrategy=FieldStrategy.NOT_EMPTY)
    private String address;

    @TableField(updateStrategy=FieldStrategy.NOT_EMPTY)
    private String createDate;

    @TableField(updateStrategy=FieldStrategy.NOT_EMPTY)
    private Integer userId;

    @TableField(updateStrategy=FieldStrategy.NOT_EMPTY)
    private String name;

    @TableField(updateStrategy=FieldStrategy.NOT_EMPTY)
    private String phone;

    @TableField(updateStrategy=FieldStrategy.NOT_EMPTY)
    private String payTime;

    @TableField(updateStrategy=FieldStrategy.NOT_EMPTY)
    private String sendTime;

    @TableField(updateStrategy=FieldStrategy.NOT_EMPTY)
    private String status;

    @TableField(updateStrategy=FieldStrategy.NOT_EMPTY)
    private String getTime;

    @TableField(value ="paymoney",updateStrategy=FieldStrategy.NOT_EMPTY)
    private BigDecimal payMoney;

    @TableField(updateStrategy=FieldStrategy.NOT_EMPTY)
    private String isdel;



    @TableField(exist = false)
    private List<HfOrderitem> orderitems;

    @TableField(exist = false)
    private HfUser user;
    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;
}
